package day09;

public class InnerClassDemo {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Outer outer = new Outer();
		outer.method();

	}

}

class Outer {
	
	private int varNum = 3;
	
	class Inner {
		
		private int varNum = 6;
		
		public void function() {
			System.out.println(Outer.this.varNum);
			System.out.println(varNum);
		}
	}
	
	public void method() {
		Inner inner = new Inner();
		inner.function();
	}
}
